﻿// Copyright (C) Microsoft Corporation. All Rights Reserved.
// This code released under the terms of the
// Microsoft Limited Public License (Ms-LPL).

using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;

namespace Microsoft.VisualStudio.Samples
{
	public class Writer : StreamWriter
	{
		public Writer(Stream stream)
			: base(stream)
		{
		}

		public void Warning(string message, params object[] items)
		{
			WriteLine("Warning: {0}", string.Format(CultureInfo.CurrentUICulture, message, items));
		}

		public void Error(string message)
		{
			WriteLine("Error: {0}", message);
		}

		public void Error(string message, params object[] items)
		{
			Error(string.Format(CultureInfo.CurrentUICulture, message, items));
		}
	}
}
